"use strict";
function show(params) {
    return params;
}
show("xiaowang");
show(123);
/**
 * 接受一个数组，获取数组的最大值
 */
function compare(params) {
    let max = params[0];
    params.forEach(item => max = item > max ? item : max);
    return max;
}
let carray = [1, 2, 5, 8];
compare(carray);
compare(["a", "b", "c"]);
function compare2(values, message) {
}
compare2(1, "XIAOWANG");
const student1 = {
    id: 1, name: "小王", size: "180"
};
function trace(arg) {
    const size = arg.size;
    const value = arg.name;
    return arg;
}
trace(student1);
// trace<number>(123)
